<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!--标准mui.css-->
    <link rel="stylesheet" href="../static/weixinKp/css/mui.min.css">
    <!--App自定义的css-->
    <link rel="stylesheet" type="text/css" href="../static/weixinKp/css/app.css" />
    <title></title>
    <style media="screen">
        .invoice {
            padding: 0px 4%;
            height: auto;
        }
    </style>
</head>

<body>

</body>
<script src="../static/weixinKp/js/mui.min.js"></script>
<script src="../static/weixinKp/js/path.js"></script>
<script src="../static/weixinKp/js/jquery-3.2.1.min.js" charset="utf-8"></script>
<script type="text/javascript">
    const title = decodeURI(getQueryString('title'));
    const id = decodeURI(getQueryString('id'));
    $('title').text(title);
    $.ajax({
        url: path + '/app/company/jobs/detail',
        dataType: 'json',
        type: 'post',
        xhrFields: {
            withCredentials: true
        },
        data: {
            id: id
        },
        success: (data) => {
            console.log(data);
            var html = '';
            html += '<div class="invoice" style="color:#82d467">岗位职责</div>';
            html += '<div class="invoice" style="margin: 0px;">' + data.data.positionduty + '</div>';
            html += '<div class="invoice" style="color:#a58745">任职要求</div>';
            html += '<div class="invoice" style="margin: 0px;">' + data.data.requirements + '</div>';
            $('body').append(html);
        },
        error: (err) => {
            mui.alert(err.message);
        }
    })
</script>

</html>
